<?php

use Service\Http\Controller\AuthController;
use Service\Http\Controller\ItemController;
use Service\Http\Controller\OrderController;
use Service\Http\Controller\TestController;
use Service\Http\Route;


Route::get('/test', [TestController::class, 'index']);
Route::post('/assets/upload', [TestController::class, 'upload']);


Route::get('/auth/available', [AuthController::class, 'available']);
Route::post('/auth/token', [AuthController::class, 'token']);
Route::post('/auth/register', [AuthController::class, 'register']);


Route::get('/item', [ItemController::class, 'get']);
Route::post('/item/create', [ItemController::class, 'create']);
Route::post('/item/delete', [ItemController::class, 'delete']);
Route::get('/item/search', [ItemController::class, 'search']);
Route::post('/item/update', [ItemController::class, 'update']);


Route::get('/order/list', [OrderController::class, 'list']);
Route::post('/order/create', [OrderController::class, 'create']);
Route::post('/order/delete', [OrderController::class, 'delete']);
